package org.misalen.web.database.model.mysql.sys;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;

import org.hibernate.annotations.DynamicInsert;
import org.hibernate.annotations.DynamicUpdate;
import org.misalen.annotations.ModelComment;
import org.misalen.web.database.model.mysql.BaseSqlModel;

/**
 * 角色/组织机构
 * 
 * @author guochao
 *
 */
@Entity
@Table(name = "SysAdminRole")
@DynamicInsert(true)
@DynamicUpdate(true)
public class SysAdminRole extends BaseSqlModel {

	@ModelComment("用户id")
	@Column(name = "adminId")
	private String adminId;

	@ModelComment("角色id")
	@Column(name = "roleId")
	private String roleId;

	public String getAdminId() {
		return adminId;
	}

	public void setAdminId(String adminId) {
		this.adminId = adminId;
	}

	public String getRoleId() {
		return roleId;
	}

	public void setRoleId(String roleId) {
		this.roleId = roleId;
	}

}
